package com.tornado.system.model;

import java.util.Date;

public class News {
    @Override
	public String toString() {
		return "News [newsId=" + newsId + ", newsTitle=" + newsTitle
				+ ", newsAuthor=" + newsAuthor + ", createTime=" + createTime
				+ ", newsContent=" + newsContent + "]";
	}

	private Integer newsId;

    private String newsTitle;

    private String newsAuthor;

    private Date createTime;

    private String newsContent;

    
    
    public News() {
		
	}

	public News(String newsTitle, String newsAuthor, Date createTime,
			String newsContent) {
		
		this.newsTitle = newsTitle;
		this.newsAuthor = newsAuthor;
		this.createTime = createTime;
		this.newsContent = newsContent;
	}
	

	public News(Integer newsId, String newsTitle, String newsAuthor,
			String newsContent) {
		super();
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.newsAuthor = newsAuthor;
		this.newsContent = newsContent;
	}

	public News(String newsTitle, String newsAuthor, String newsContent) {
		super();
		this.newsTitle = newsTitle;
		this.newsAuthor = newsAuthor;
		this.newsContent = newsContent;
	}

	public News(Integer newsId, String newsTitle, String newsAuthor,
			Date createTime, String newsContent) {
		
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.newsAuthor = newsAuthor;
		this.createTime = createTime;
		this.newsContent = newsContent;
	}

	public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle == null ? null : newsTitle.trim();
    }

    public String getNewsAuthor() {
        return newsAuthor;
    }

    public void setNewsAuthor(String newsAuthor) {
        this.newsAuthor = newsAuthor == null ? null : newsAuthor.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent == null ? null : newsContent.trim();
    }
}